package top.mypath.model;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 最大订单
 * @author LiYalin
 */
@Setter
public class MaxOrderCombine {

    /**
     * 订单的批次号
     */
    private List<String> batchNumbers;

    /**
     * 合计金额
     */
    private BigDecimal total;

    /**
     * 数量
     */
    private Integer num;

    /**
     * 打印发票序号
     */
    private String invoiceSerialNumber;


    public List<String> getBatchNumbers() {
        if(batchNumbers == null){
            batchNumbers= new ArrayList<>();
        }
        return batchNumbers;
    }

    public BigDecimal getTotal() {
        if(total == null){
            total = new BigDecimal(0);
        }
        return total;
    }

    public Integer getNum() {
        if (num == null) {
            num=0;
        }
        return num;
    }

    public String getInvoiceSerialNumber() {
        if(invoiceSerialNumber==null){
            invoiceSerialNumber= "";
        }
        return invoiceSerialNumber;
    }
}
